<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>重定向页面</title>
</head>
<body>
    <h1>因为要写入cookie, 所以需要先渲染本应用下的页面，再跳转到目标页面</h1>

    <script>

        setTimeout(() => {
            location.href = '/index2.html';
        }, 3000);
    </script>
</body>
</html>